<%-- 
    Document   : deletetourcate
    Created on : Apr 5, 2011, 10:45:33 PM
    Author     : Noi Nho
--%>

<%@page import="dto.TourCategory"%>
<%@page import="dao.TourCateDAO"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">
<c:if test="${param['tourCateID']=='' || param['tourCateID']==null}">
    <jsp:forward page="administrator.jsp?page=tourCate" />
</c:if>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Delete Tour Category</title>
    </head>
    <body>
        <a href="administrator.jsp?page=tourCate">Tour category management</a>
        <br>
        <form name="tourCateDelete" action="AdminAction?page=tourCate&action=delete&tourCateID=${param['tourCateID']}" method="post">
            <%
                        TourCateDAO touCateDAO = new TourCateDAO();
                        TourCategory tourCate = touCateDAO.getTourCateByID(Integer.parseInt(request.getParameter("tourCateID").toString()));
                        if (tourCate != null) {
                            request.setAttribute("tourCate", tourCate);

            %>
            Tour Cate ID: <%out.println(tourCate.getTourCateID());%>
            <br>
            Tour Category Name: <%out.println(tourCate.getCateName());%>
            <br>
            Description: <%out.println(tourCate.getDescription());%>
            <br>
            <input type="submit" name="submit" value="Ok">
            <input type="reset" name="reset" value="Cancel">
            <%
                        }
            %>
        </form>
    </body>
</html>
